#include <iostream>
#include <math.h>
#include <conio.h>

using namespace std;

int matrix[5][5] = 
{
	{ 8, -11, 12, -34, 29 },
	{ 18, -41, -42, 82, 35 },
	{ 36, 4, -2, 5, -18 },
	{ 48, -36, 30, 41, -28 },
	{ -32, -23, 3, 1, 2 }
};

int main(int argc, char argv[])
{
	int sumPoloz = 0;
	int kolvoOtric = 0;

	for(int j=0; j<5; j++)
	{
		for(int i=0; i<5; i++)
		{
			if(matrix[i][j] >= 0)
			{
				sumPoloz += matrix[i][j];
			}
			else
			{
				kolvoOtric++;
			}
		}

		cout << "Stolbec " << j+1 << "   Summa polozhit. el-v: " << sumPoloz << "   Kol-vo otric. el-v: " << kolvoOtric << "\n";
		sumPoloz = 0;
		kolvoOtric = 0;
	}

	getch();

	return 0;
}